<div class="container-fluid">
    <div class="row">
        <div class="col-md-12">
            <!-- 供应商基本信息 -->
            <div class="card mb-3">
                <div class="card-header bg-light">
                    <h6 class="mb-0"><i class="fa fa-info-circle"></i> 供应商信息</h6>
                </div>
                <div class="card-body">
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="form-label">供应商ID：</label>
                                <span class="form-control-plaintext">{{ $supplier['id'] }}</span>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="form-label">供应商名称：</label>
                                <span class="form-control-plaintext">{{ $supplier['name'] }}</span>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="form-label">所属平台：</label>
                                <span class="form-control-plaintext">
                                    <span class="badge badge-primary">{{ $supplier['platform'] }}</span>
                                </span>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="form-label">状态：</label>
                                <span class="form-control-plaintext">
                                    <span class="badge badge-success">{{ $supplier['status'] }}</span>
                                </span>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="form-label">供应商信息：</label>
                                <div class="d-flex align-items-center">
                                    <div class="avatar avatar-sm rounded-circle mr-3">
                                        <img src="{{ $supplier['supplier_info']['avatar'] }}" alt="{{ $supplier['supplier_info']['name'] }}" class="rounded-circle" style="width: 50px; height: 50px;">
                                    </div>
                                    <div>
                                        <div><strong>{{ $supplier['supplier_info']['name'] }}</strong></div>
                                        <small class="text-muted">ID: {{ $supplier['supplier_info']['id'] }}</small>
                                        <div><small class="text-muted">联系电话: {{ $supplier['phone'] }}</small></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 操作历史 -->
            <div class="card mb-3">
                <div class="card-header bg-light">
                    <h6 class="mb-0"><i class="fa fa-history"></i> 操作历史</h6>
                </div>
                <div class="card-body">
                    <div class="timeline">
                        <div class="time-label">
                            <span class="bg-primary">{{ date('Y-m-d', strtotime($supplier['created_at'])) }}</span>
                        </div>
                        <div>
                            <i class="fa fa-user-plus bg-success"></i>
                            <div class="timeline-item">
                                <span class="time"><i class="fa fa-clock"></i> {{ date('H:i', strtotime($supplier['created_at'])) }}</span>
                                <h3 class="timeline-header">供应商创建</h3>
                                <div class="timeline-body">
                                    供应商 "{{ $supplier['name'] }}" 已成功创建并加入平台
                                </div>
                            </div>
                        </div>
                        <div>
                            <i class="fa fa-check bg-info"></i>
                            <div class="timeline-item">
                                <span class="time"><i class="fa fa-clock"></i> {{ date('H:i', strtotime($supplier['created_at'] . ' +1 hour')) }}</span>
                                <h3 class="timeline-header">状态更新</h3>
                                <div class="timeline-body">
                                    供应商状态更新为 "{{ $supplier['status'] }}"
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 统计信息 -->
            <div class="card mb-3">
                <div class="card-header bg-light">
                    <h6 class="mb-0"><i class="fa fa-chart-bar"></i> 统计信息</h6>
                </div>
                <div class="card-body">
                    <div class="row">
                        <div class="col-md-3">
                            <div class="info-box bg-light">
                                <span class="info-box-icon bg-primary">
                                    <i class="fa fa-shopping-cart"></i>
                                </span>
                                <div class="info-box-content">
                                    <span class="info-box-text">总订单数</span>
                                    <span class="info-box-number">156</span>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="info-box bg-light">
                                <span class="info-box-icon bg-success">
                                    <i class="fa fa-dollar-sign"></i>
                                </span>
                                <div class="info-box-content">
                                    <span class="info-box-text">总销售额</span>
                                    <span class="info-box-number">¥12,580</span>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="info-box bg-light">
                                <span class="info-box-icon bg-warning">
                                    <i class="fa fa-percentage"></i>
                                </span>
                                <div class="info-box-content">
                                    <span class="info-box-text">成功率</span>
                                    <span class="info-box-number">98.5%</span>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="info-box bg-light">
                                <span class="info-box-icon bg-info">
                                    <i class="fa fa-star"></i>
                                </span>
                                <div class="info-box-content">
                                    <span class="info-box-text">评分</span>
                                    <span class="info-box-number">4.8</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 操作按钮 -->
            <div class="row">
                <div class="col-md-12 text-right">
                    <button type="button" class="btn btn-secondary mr-2" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary mr-2">编辑供应商</button>
                    <button type="button" class="btn btn-warning">管理商品</button>
                </div>
            </div>
        </div>
    </div>
</div>

<style>
.avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #495057;
}

.form-control-plaintext {
    display: inline-block;
    margin-bottom: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.timeline {
    position: relative;
    margin: 0 0 30px 0;
    padding: 0;
    list-style: none;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ddd;
    left: 31px;
    margin: 0;
    border-radius: 2px;
}

.timeline > div {
    margin-bottom: 15px;
    position: relative;
}

.timeline > div > .timeline-item {
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    border-radius: 3px;
    margin-top: 0;
    background: #fff;
    color: #444;
    margin-left: 60px;
    margin-right: 15px;
    padding: 0;
    position: relative;
}

.timeline > div > .timeline-item > .time {
    color: #999;
    float: right;
    padding: 10px;
    font-size: 12px;
}

.timeline > div > .timeline-item > .timeline-header {
    margin: 0;
    color: #555;
    border-bottom: 1px solid #f4f4f4;
    padding: 10px;
    font-size: 16px;
    line-height: 1.1;
}

.timeline > div > .timeline-item > .timeline-body {
    padding: 10px;
}

.timeline > div > .fa {
    width: 30px;
    height: 30px;
    font-size: 15px;
    line-height: 30px;
    position: absolute;
    color: #666;
    background: #d2d6de;
    border-radius: 50%;
    text-align: center;
    left: 18px;
    top: 0;
}

.time-label > span {
    font-weight: 600;
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    display: inline-block;
    border-radius: 4px;
}

.info-box {
    display: block;
    min-height: 90px;
    background: #fff;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    border-radius: 2px;
    margin-bottom: 15px;
}

.info-box-icon {
    border-top-left-radius: 2px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 2px;
    display: block;
    float: left;
    height: 90px;
    width: 90px;
    text-align: center;
    font-size: 45px;
    line-height: 90px;
    background: rgba(0,0,0,0.2);
}

.info-box-content {
    padding: 5px 10px;
    margin-left: 90px;
}

.info-box-number {
    display: block;
    font-weight: bold;
    font-size: 18px;
}

.info-box-text {
    display: block;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
</style>